home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
borllexp
/
blx_1_1
/
stdwin.h
< prev
next >
Wrap
Text File
|
1991-01-21
|
917b
|
26 lines
#include<windows.h>
#include"winapp.h"
#if !defined(STDWIN_H)
/* STDWIN: A class derived from Window. This class
creates a standard, overlapped Window with Scroll bars. */
class WinAppStdWindow : public Window {
public:
WinAppStdWindow(WinApp *myApp, WinClass *wc,
char *name) : Window(myApp,wc) {
// StdWindow class settings
AddClassStyle(CS_HREDRAW | CS_VREDRAW);
// Window settings
AddWinStyle(WS_BORDER | WS_CAPTION | WS_OVERLAPPEDWINDOW |
WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_SYSMENU |
WS_THICKFRAME | WS_VISIBLE);
SetWinInstance(myApp->GetInstance());
SetWinX(CW_USEDEFAULT);
SetWinY(CW_USEDEFAULT);
SetWinWidth(CW_USEDEFAULT);
SetWinHeight(CW_USEDEFAULT);
SetWinName(name);
}
};
#define STDWIN_H
#endif